<style>
  .text-center {
    text-align: left !important;
  }
</style>
<form id="" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">课程名称：</label>
    <label class="control-label col-xs-12 col-sm-2 text-center">{$goods.name}</label>
  </div>
  <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">排序：</label>
    <label class="control-label col-xs-12 col-sm-2 text-center">{$goods.sort}</label>
  </div>
  <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">课程缩略图：</label>
    <label class="control-label col-xs-12 col-sm-1 text-center">
      <a href="{$goods.cover_pic}" data-url="{$goods.cover_pic}" target="_blank" class="thumbnail">
        <img src="{$goods.cover_pic}" onerror="this.src='/admin/ajax/icon?suffix=png';this.onerror=null;" class="img-responsive">
      </a>
    </label>
  </div>
  <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">课程轮播图：</label>
    {foreach name="goods_pic_list" item="v"}
    <label class="control-label col-xs-12 col-sm-1 text-center">
      <a href="{$v}" data-url="{$v}" target="_blank" class="thumbnail">
        <img src="{$v}" onerror="this.src='/admin/ajax/icon?suffix=png';this.onerror=null;" class="img-responsive">
      </a>
    </label>
    {/foreach}
  </div>
  <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">售价：</label>
    <label class="control-label col-xs-12 col-sm-2 text-center">{$goods.price}元</label>
  </div>
  {if condition="($goods.use_attr == 0)"}
  <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">名额：</label>
    <label class="control-label col-xs-12 col-sm-2 text-center">{$goods.goods_num}</label>
  </div>
    {else /}
  <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">规格名额：</label>
    {foreach name="attr_group_list" item="group"}
    <label class="control-label col-xs-12 col-sm-2 text-center">{$group.attr_group_name}</label>
    {/foreach}
    <label class="control-label col-xs-12 col-sm-2 text-center">价格</label>
    <label class="control-label col-xs-12 col-sm-2 text-center">名额</label>
  </div>
  {foreach name="attr_row_list" item="attr_row"}
  <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2"></label>
    {foreach name="$attr_row['attr_list']" item="attr"}
    <label class="control-label col-xs-12 col-sm-2 text-center">{$attr.attr_name}</label>
    {/foreach}
    <label class="control-label col-xs-12 col-sm-2 text-center">{$attr_row.price}</label>
    <label class="control-label col-xs-12 col-sm-2 text-center">{$attr_row.num}</label>
  </div>
  {/foreach}
  {/if}

  <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">图文详情：</label>
    <label class="control-label col-xs-12 col-sm-2 text-center">{$goods.detail}</label>
  </div>
</form>
